﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Model;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class LoginManager
    {
        LoginService loginser = new LoginService();
        /// <summary>
        /// 管理员登录，若存在则返回true不存在则返回false
        /// </summary>
        /// <param name="sta"></param>
        /// <returns></returns>
        public bool LoginIs(ref Staff sta)
        {
            sta = loginser.GetStaffParas(sta);
            if (sta.StfId != 0)
            {
                return true;
            }
            return false;
        }
    }
}
